﻿<%@ Page Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true" CodeFile="People-Edit.aspx.cs" Inherits="People_Edit" %>

<asp:Content ID="Content1" ContentPlaceHolderID="header" Runat="Server">
  People - <asp:Literal ID="litNewEdit" runat="server"></asp:Literal>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="main" Runat="Server">

<table style="float:left">
  <tr><td>First Name:</td><td><asp:TextBox ID="txtFirstname" runat="server" Columns="30"></asp:TextBox></td></tr>
  <tr><td>Last Name:</td><td><asp:TextBox ID="txtLastname" runat="server" Columns="30"></asp:TextBox></td></tr>
  <tr><td>Email:</td><td><asp:TextBox ID="txtEmail" runat="server" Columns="30"></asp:TextBox></td></tr>
  <tr><td>Cell / Mobile:</td><td><asp:TextBox ID="txtCellMob" runat="server"></asp:TextBox></td></tr>
  <tr><td>Street:</td><td><asp:TextBox ID="txtStreet" runat="server"></asp:TextBox></td></tr>
  <tr><td>City:</td><td><asp:TextBox ID="txtCity" runat="server"></asp:TextBox></td></tr>
  <tr><td>State:</td><td><asp:TextBox ID="txtState" runat="server"></asp:TextBox></td></tr>
  <tr><td>Postcode:</td><td><asp:TextBox ID="txtPostcode" runat="server"></asp:TextBox></td></tr>
  <tr><td>Country:</td><td><asp:TextBox ID="txtCountry" runat="server"></asp:TextBox></td></tr>
  <tr><td>Home Phone:</td><td><asp:TextBox ID="txtHomephone" runat="server"></asp:TextBox></td></tr>
  <tr><td>Age:</td><td><asp:TextBox ID="txtAge" runat="server" Columns="10"></asp:TextBox></td></tr>
  <tr><td>Gender:</td><td><asp:TextBox ID="txtGender" runat="server" Columns="10"></asp:TextBox></td></tr>
</table>

<table style="float:left">
  <tr><td>Sid:</td><td><asp:TextBox ID="txtSid" runat="server"></asp:TextBox></td></tr>
  <tr><td>Created:</td><td><asp:TextBox ID="txtCreated" runat="server"></asp:TextBox></td></tr>
  <tr><td>IP Address:</td><td><asp:TextBox ID="txtIp" runat="server"></asp:TextBox></td></tr>
  <tr><td>UID:</td><td><asp:TextBox ID="txtUid" runat="server"></asp:TextBox></td></tr>
  <tr><td>Username:</td><td><asp:TextBox ID="txtUsername" runat="server"></asp:TextBox></td></tr>
  <tr><td style="vertical-align:top">Notes:</td><td><asp:TextBox ID="txtNotes" runat="server" TextMode="MultiLine" Columns="30" Rows="5"></asp:TextBox></td></tr>
  <tr><td>Age Group:</td><td>
    <asp:DropDownList ID="ddlAgeGroup" runat="server" DataSourceID="sdsAgeGroups" 
      DataTextField="age_group" DataValueField="age_group" 
      ondatabound="ddlAgeGroup_DataBound">
    </asp:DropDownList>
  </td></tr>
  <tr><td>Involvement:</td><td>
    <asp:DropDownList ID="ddlInvolvement" runat="server" 
      DataSourceID="sdsInvolvement" DataTextField="involvement" 
      DataValueField="involvement" ondatabound="ddlInvolvement_DataBound">
    </asp:DropDownList>
  </td></tr>
</table>

<p style="clear:both">
  <asp:Button ID="bnSave" runat="server" Text="Save" onclick="bnSave_Click" />
  <asp:Label ID="lblSaveStatus" runat="server" Text=""></asp:Label>
  <asp:Button ID="bnDelete" runat="server" Text="Delete" 
    onclick="bnDelete_Click" />
  <a href="People.aspx">Close</a>
</p>

  <asp:SqlDataSource ID="sdsAgeGroups" runat="server" 
    ConnectionString="<%$ ConnectionStrings:Main %>" 
    SelectCommand="SELECT [age_group] FROM [age_groups] ORDER BY [sort_order]"></asp:SqlDataSource>
  <asp:SqlDataSource ID="sdsInvolvement" runat="server"
    ConnectionString="<%$ ConnectionStrings:Main %>" 
    SelectCommand="SELECT [involvement] FROM [involvements] ORDER BY [sort_order]"></asp:SqlDataSource>

</asp:Content>

